package com.xiaoq.manager.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.xiaoq.manager.entity.MerchantFunEntity;
import com.xiaoq.manager.repository.IMerchantFunRepository;
import com.xiaoq.manager.service.IMerchantFunService;

@Component
public class MerchantFunServiceImpl implements IMerchantFunService {
	
	@Autowired
	private IMerchantFunRepository merchantFunRep;

	@Override
	public MerchantFunEntity findMerchantFunByCode(String code) {
		
		return merchantFunRep.findMerchantFunByCode(code);
	}

	@Override
	public Map<String, MerchantFunEntity> findMerchantFunMap() {
		return merchantFunRep.findMerchantFunMap();
	}

	@Override
	public List<MerchantFunEntity> findMerchantFunList() {
		return merchantFunRep.findMerchantFunList();
	}

}
